import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class SetGetDemo02 {
    public static void main(String[] args) throws FileNotFoundException {
        Fish fish = new Fish();
        fish.setAge(-10);
        fish.setColor("红色");

        System.out.println(fish.getAge());
        System.out.println(fish.getColor());
    }
}
